<!-- =============================================== -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="header-icon">
            <i class="pe-7s-world"></i>
        </div>
        <div class="header-title">
            <h1><?php echo display('auto_sms_report');?></h1>
            <small><?php echo display('auto_sms_report');?></small>
            
        </div>
    </section>

    <!-- Main content -->
    <section class="content">

        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <?php  
                        $a = array('method'=>'post');
                        echo form_open('admin/Sms_report_controller/auto_sms_list/search',$a);
                        ?>
                        <div class="form-inline">
                            <div class="col-md-3">
                                <input type="text" name="from_date" placeholder="<?php echo display('from_date');?>" class="form-control datepicker1">
                            </div>
                            <div class="col-md-3">
                                <input type="text" name="to_date" placeholder="<?php echo display('to_date');?>" class="form-control datepicker1">
                            </div>

                            <div class="col-md-2">
                                <input type="submit" value="Search" class="btn btn-primary">
                            </div>
                        </div>
                        <?php echo form_close();?>
                    </div>
                </div>
            </div>
        </div>
    
    
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-bd">
                    <div class="panel-body">
                        <table width="100%" class="table table-striped table-bordered table-hover" id="sms">
                            <thead>
                               <tr>
                                    <th class=""><?php echo display('reciver');?></th>
                                    <th class=""><?php echo display('date_time');?></th>
                                    <th class=""><?php echo display('message');?></th>
                                </tr>
                            </thead>

                            <tbody>
                             <?php foreach($auto_sms as $value){?>
                                <tr>
                                    <td><?php echo html_escape($value->phone_no);?></td>
                                    <td><?php echo html_escape($value->delivery_date_time);?></td>
                                    <td><?php echo html_escape($value->message);?></td>
                                </tr>
                                <?php
                                    }
                                ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>           
    </section>
</div>


